<?php
use think\facade\Route;
// 分类资源路由
Route::resource('category', 'Category')
    ->only(['index', 'save', 'update', 'delete'])
    ->pattern(['id' => '\d+']);

// 批量修改接口
Route::put('category/batch_update', 'Category/batch_update');
// 批量删除接口
Route::delete('category/batch_delete', 'Category/batch_delete');